package mutation;

import GA.Chromosome;
import GA.Mutation;
import antTrail.AntTrailChromosome;

public class TerminalMutation extends Mutation {

	public TerminalMutation(double mutationProb) {
		super(mutationProb);
	}

	protected Chromosome mutate(Chromosome chrom) {
		((AntTrailChromosome) chrom).getTree().mutateRandomTerminal();
		return chrom;
	}

}
